{% extends "base.html" %}

{% block title %}Clientes{% endblock %}
{% block head %}Agregar Cliente{% endblock %}

{% block content %}
    <p>| <a href="/clientes/listado/">Volver a Clientes</a> |</p>
    <br /><br />
    <form method="POST" action=".">{% csrf_token %}
        <table class="formTable" align="center">
            <tr>
                <td class="formfieldleft">{{ form.apellido.label_tag }}</td>
                <td class="formfieldmiddle">{{ form.apellido }}<br />{{ form.apellido.help_text }}<br />{{ form.apellido.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">{{ form.nombre.label_tag }}</td>
                <td class="formfieldmiddle">{{ form.nombre }}<br />{{ form.nombre.help_text }}<br />{{ form.nombre.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">{{ form.rut.label_tag }}</td>
                <td class="formfieldmiddle">{{ form.rut }}<br />{{ form.rut.help_text }}<br />{{ form.rut.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">{{ form.direccion.label_tag }}</td>
                <td class="formfieldmiddle">{{ form.direccion }}<br />{{ form.direccion.help_text }}<br />{{ form.direccion.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">Tel&eacute;fonos *</td>
                <td class="formfieldmiddle">{{ form.telefono1.label_tag }}<br />{{ form.telefono1 }}<br />{{ form.telefono1.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft"></td>
                <td class="formfieldmiddle">{{ form.telefono2.label_tag }}<br />{{ form.telefono2 }}<br />{{ form.telefono2.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">E-mails</td>
                <td class="formfieldmiddle">{{ form.email1.label_tag }}<br />{{ form.email1 }}<br />{{ form.email1.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft"></td>
                <td class="formfieldmiddle">{{ form.email2.label_tag }}<br />{{ form.email2 }}<br />{{ form.email2.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">Cumplea&ntilde;os</td>
                <td class="formfieldmiddle">{{ form.diaCumple }} {{ form.mesCumple }}<br />{{ form.diaCumple.errors }} {{ form.mesCumple.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
            <tr>
                <td class="formfieldleft">{{ form.observaciones.label_tag }}</td>
                <td class="formfieldmiddle">{{ form.observaciones }}<br />{{ form.observaciones.help_text }}<br />{{ form.observaciones.errors }}</td>
                <td class="formfieldright"></td>
            </tr>
        </table><br />
        <input type="submit" value="Agregar" />
    </form>
    <br /><br />
    <p>| <a href="/clientes/listado/">Volver a Clientes</a> |</p>
    <br /><br /><br /><br /><br /><br />
{% endblock %}
 
